# $Id: PKGBUILD 86994 2013-03-25 17:48:03Z bpiotrowski $
# Maintainer:  Bartłomiej Piotrowski <spam@bpiotrowski.pl>
# Contributor: Francois Boulogne <fboulogne at april dot org>

pkgname=glances
pkgver=1.6.1
pkgrel=1
pkgdesc='CLI curses-based monitoring tool'
arch=('any')
url='https://github.com/nicolargo/glances'
license=('LGPL')
depends=('python2' 'python2-psutil' 'python2-distribute')
optdepends=('python2-jinja: HTML export'
            'python2-sensors: temperature sensors support')
source=($pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz)
sha256sums=('6da67b19e8508f6f93fb05536ba42b22355d3cb2637e34d21e056524f93d33a2')

package() {
  cd $srcdir/$pkgname-$pkgver
  sed 's|^#!/usr/bin/env python$|&2|' -i glances/glances.py
  python2 setup.py install --prefix=/usr --root=$pkgdir
}

# vim:ts=2:sw=2:et:
